import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { UserModule } from './user/user.module'
import { DbModule } from '@libs/db'
import { ExampleModule } from './example/example.module'
import { AuthModule } from './auth/auth.module'
import { CasbinModule } from './casbin/casbin.module'
import { WechatModule } from './wechat/wechat.module'
@Module({
  imports: [
    AuthModule,
    UserModule,
    DbModule,
    ExampleModule,
    CasbinModule.forRootAsync({
      // 全局模块
      conf: '../src/casbin/rbac_model.conf',
      csv: '../src/casbin/rbac_policy.csv',
    }),
    WechatModule,
  ],
  controllers: [AppController],
  providers: [AppService],
  exports: [],
})
export class AppModule {}
